<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>查看当前网页的访问历史</title>
</head>
<body>
  <form name="viewForm">
    <input type="button" value="back" onclick="history.back()">
    <br>
    <input type="button" value="forward" onclick="history.forward()">
    <br>
    <label>
      前进
      <input type="text" name="n">
      个页面（负数为后退）
    </label>
    <input type="button" value="go" onclick="history.go(parseInt(document.viewForm.n.value))">
  </form>
</body>
</html>